package com.laotang.第_9_章_二叉树;

public class Test {

    // 遍历打印以 root 为根节点的二叉树
    public void printTree(TreeNode root) {
        if (root == null) return;

        System.out.println(root.val);

        printTree(root.left);
        printTree(root.right);
    }


}
